package com.wonderful.mall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wonderful.common.utils.PageUtils;
import com.wonderful.mall.member.entity.MemberEntity;
import com.wonderful.mall.member.exception.MobileExistException;
import com.wonderful.mall.member.exception.UsernameExistException;
import com.wonderful.mall.member.vo.MemberLoginVo;
import com.wonderful.mall.member.vo.MemberRegisterVo;
import com.wonderful.mall.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author BLITE
 * @email 1476995949@qq.com
 * @date 2022-09-10 12:57:30
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRegisterVo vo);

    void checkMobileUnique(String mobile) throws MobileExistException;

    void CheckUserNameUnique(String username) throws UsernameExistException;

    MemberEntity login(SocialUser vo) throws Exception;

    MemberEntity login(MemberLoginVo vo);
}

